package strategy;

import com.example.paperselection.Paper;

import java.util.ArrayList;
import java.util.List;

public class OrderSelectionStrategy implements PaperSelectionStrategy {
    @Override
    public List<Paper> select(List<Paper> availablePapers, int q) {
        List<Paper> result = new ArrayList<>();
        for (int i = 0; i < q && i < availablePapers.size(); i++) {
            result.add(availablePapers.get(i));
        }
        return result;
    }
}
